package com.yhk.wuchat.common.websocket.service;

import com.yhk.wuchat.common.websocket.domain.vo.resp.WSBaseResp;
import io.netty.channel.Channel;

/**
 * @version 1.0
 * @Author moresuo
 * @Date 2024/4/2 16:51
 * @注释
 */
public interface WebSocketService {
    void connect(Channel channel);

    void handlerLoginReq(Channel channel);

    void remove(Channel channel);

    void scanLoginSuccess(Integer code, Long id);

    void waitAuthorize(String fromUser, Integer code);

    void authorize(Channel channel, String data);

    void sendMsgToAll(WSBaseResp<?> msg);
}
